package com.fruitshop;

import com.fruitshop.manager.ApplicationManager;
import com.fruitshop.model.Command;

import java.util.ArrayList;
import java.util.List;

public class FruitShopApplication {
    public static void main(String[] args) {
        FruitShopApplication.run();
    }

    public static void run() {

        List<Command> commandList = new ArrayList<>();

        commandList.add(new Command("1", "用户注册", false));
        commandList.add(new Command("2", "用户登录", false));
        commandList.add(new Command("3", "水果管理"));
        commandList.add(new Command("4", "水果购买记录"));
        commandList.add(new Command("5", "管理员注册", false));
        commandList.add(new Command("6", "管理员登录", false));

        ApplicationManager applicationManager = new ApplicationManager("欢迎来到佰惠鲜果店", commandList);

        applicationManager.run();
    }
}
